]> dgit.raspbian.org Git - linux-4.9.git/commit
brcmfmac: Make skb header writable before use
authorJames Hughes <james.hughes@raspberrypi.org>
Tue, 25 Apr 2017 09:15:06 +0000 (10:15 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 26 Apr 2017 11:13:34 +0000 (12:13 +0100)
commit27c2a6afeaad78af7041f849faceab9c6fd7cfec
tree8338460be059505ca73749502c4266cf1dc021f0
parentef302fca51efe927d7044cad016832cd4941a83f
brcmfmac: Make skb header writable before use

The driver was making changes to the skb_header without
ensuring it was writable (i.e. uncloned).
This patch also removes some boiler plate header size
checking/adjustment code as that is also handled by the
skb_cow_header function used to make header writable.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c